﻿Public Class LoginForm

    Private Sub RunOnStartUp_Click(sender As System.Object, e As System.EventArgs) Handles RunOnStartUp.Click
    End Sub

    Private Sub Inforfmation_Click(sender As System.Object, e As System.EventArgs) Handles Inforfmation.Click
        AboutBoxInformation.ShowDialog()
    End Sub

    Private Sub EndProgram_Click(sender As System.Object, e As System.EventArgs) Handles EndProgram.Click
        Me.Close()
    End Sub

    Private Sub EnterKey_Click(sender As System.Object, e As System.EventArgs) Handles EnterKey.Click
        LicenseKey1.Visible = True
    End Sub

    Private Sub InformationKey_Click(sender As System.Object, e As System.EventArgs) Handles InformationKey.Click
        MessageBox.Show("Key: " + My.Settings.LicenceKey1.ToString & vbNewLine & "Key Validated: " + My.Settings.ValidationKey.ToString, "License Key Information", MessageBoxButtons.OK, MessageBoxIcon.Information)
    End Sub

    Private Sub LoginForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Me.EtairiaTableAdapter.Fill(Me.PanalogDataSet.Etairia)
        Me.LoginEpixirisi.EponumiaComboBox.DataSource = Me.EtairiaBindingSource
    End Sub

    Private Sub EtairiaBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs)
        Me.Validate()
        Me.EtairiaBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.PanalogDataSet)

    End Sub

End Class
